<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--{include file='comm/header.tpl'}-->
    <title>入库单详情-<!--{$voucher->voucherID}--></title>
    <style>
        .clf{clear:both;}
        .fll{float:left;}
        .scanForm{margin-left:15px;margin-top:30px;}
    </style>
</head>
<body>
<div style="width:100%">

    <!--{if $operFlg == 3 && $error_msg}-->

    <div class="comm-box">
        <!--{$error_msg}-->
    </div>

    <!--{else}-->

    <div class="items clearfix">
        <h2 style="" class="tal">正在操作：入库单详情-<!--{$voucher->voucherID}--></h2>
        <div class="items2">
        </div>
        <div style="background: #cccccc;width: 100%;height: 24px;line-height: 24px;">
            <div class="fll" style="margin-left: 20px;">入库单信息</div>
            <div style="float: right;margin-right: 20px;">
                状态：<span >
                    <!--{if $voucher->auditFlg == 0}-->
                        未审核
                    <!--{elseif $voucher->auditFlg == 1}-->
                        已审核
                    <!--{elseif $voucher->auditFlg == 2}-->
                        已作废
                    <!--{/if}-->
                </span>
            </div>
            <div style="float: right;margin-right: 20px;">
                总数量：<span id="totalAmount"><!--{$voucher->goodsAmount}--></span>件
            </div>
            <div style="float: right;margin-right: 30px;">
                总计：<span id="totalPrice"><!--{$voucher->goodsPrice}--></span>
            </div>
            <div style="float: right;margin-right: 40px;">
                所在仓库：<span id="storeName"><!--{$voucher->storeName}--></span>
            </div>
            <div class="clf"></div>
        </div>

        <!--{if $voucher->auditFlg == 2}-->
        <div style="width: 100%;margin-top: 10px;margin-bottom: 10px;">
            <table style="width: 100%;">
                <tr>
                    <td style="width: 70px;text-align: right;">作废原因：</td>
                    <td><!--{$voucher->remark}--></td>
                </tr>
            </table>
        </div>
        <!--{/if}-->

        <table id="flex" style="display:none"></table>

    </div>
    <!--{/if}-->


    <div class="bottom_fixbox">
        <div class="rectbox tac">
            <input type="button" class="btn" onclick="E.closeWindows();" value="关闭" />
        </div>
    </div>



</div>

<script type="text/javascript">
    $("#flex").flexigrid({
        url:"/invokingAjax-backend/wms/putInStore.ajax?operFlg=4&voucherID=<!--{$voucher->voucherID}-->",
        dataType: "json",
        colModel : [
            {display: "商品号", name : 'product_code', sortable : true ,width : 110},
            {display: "商品名称", width : 290},
            {display: "商品规格", width : 90},
            {display: "商品进价(元)",align : 'right', width : 90},
            {display: "入库数量",align : 'right', width : 90},
            {display: "小计（元）",align : 'right', width : 80}
        ],
        sortname: "product_code",
        sortorder: "asc",
        usepager: true,
        rp: 10,
        useRp: true
    });


</script>

</body>

</html>
